* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    background: #fff;
    margin: 0;    
    overflow: hidden;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    font-family: 'Julius Sans One', sans-serif;
}

#game {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

.tile {
    position: absolute;
    border-radius: 5px;
    transition: top 0.3s linear, left 0.1s linear, opacity 0.1s linear, background-color 0.5s linear; 
    font-family: 'Julius Sans One', sans-serif;
    text-align: center;
    text-overflow: hidden;
    overflow: hidden;
    padding: 1vh;
    background: #fff;
    color: #333;
    border: 1px solid black;
    cursor: pointer;
}

.sel {
    background: #fff!important;
}

.fade-out {
    opacity:0;
}

button {
    appearance: none;
    border: none;
    font: inherit;
    padding: 0;
    margin: 0;
}

button:focus-visible {
    z-index: 10;
    outline: 4px solid #fff;
}

#info {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#info button {
    padding: 5px 10px;
    background: #4CAF50;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

#menu h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

#menu button {
    margin: 10px;
    padding: 15px 30px;
    font-size: 18px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 200px;
}

#menu button:hover {
    background: #45a049;
}

#menu button.selected {
    background: #2E7D32;
}

.paused .tile {
    opacity: 0.5;
    pointer-events: none;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    color: white;
    font-size: 2em;
    flex-direction: column;
}

.game-overlay button {
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 1em;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}